package com.xinchao.model;

/**
 * 终端升级消息
 *
 * @author linqiang
 * @date 2018-08-10 14:47
 */
public class DeviceUpgradeMessage {
    private Long deviceUpgradeMessageId;

    /**
     * 终端唯一设备号
     */
    private String deviceCode;

    /**
     * 升级内容信息
     */
    private String upgradeDetail;

    /**
     * 添加时间
     */
    private Long addTime;

    /**
     * 升级类型，0：apk;1：固件
     */
    private Integer upgradeType;

    /**
     * 升级的版本名称
     */
    private String versionName;

    public DeviceUpgradeMessage() {
    }

    public DeviceUpgradeMessage(Long deviceUpgradeMessageId, String deviceCode, String upgradeDetail, Long addTime, Integer upgradeType, String versionName) {
        this.deviceUpgradeMessageId = deviceUpgradeMessageId;
        this.deviceCode = deviceCode;
        this.upgradeDetail = upgradeDetail;
        this.addTime = addTime;
        this.upgradeType = upgradeType;
        this.versionName = versionName;
    }

    public Long getDeviceUpgradeMessageId() {
        return deviceUpgradeMessageId;
    }

    public void setDeviceUpgradeMessageId(Long deviceUpgradeMessageId) {
        this.deviceUpgradeMessageId = deviceUpgradeMessageId;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode == null ? null : deviceCode.trim();
    }

    public String getUpgradeDetail() {
        return upgradeDetail;
    }

    public void setUpgradeDetail(String upgradeDetail) {
        this.upgradeDetail = upgradeDetail == null ? null : upgradeDetail.trim();
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public Integer getUpgradeType() {
        return upgradeType;
    }

    public void setUpgradeType(Integer upgradeType) {
        this.upgradeType = upgradeType;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    @Override
    public String toString() {
        return "DeviceUpgradeMessage{" +
                "deviceUpgradeMessageId=" + deviceUpgradeMessageId +
                ", deviceCode='" + deviceCode + '\'' +
                ", upgradeDetail='" + upgradeDetail + '\'' +
                ", addTime=" + addTime +
                ", upgradeType=" + upgradeType +
                ", versionName='" + versionName + '\'' +
                '}';
    }
}